﻿using System;
namespace Zinnia.Caching.Imp
{
    /// <summary>
    /// 获取缓存上下文服务对象
    /// </summary>
    /// <typeparam name="TKey"></typeparam>
    public class AcquireContext<TKey> : IAcquireContext
    {
        public AcquireContext(TKey key, Action<IVolatileToken> monitor)
        {
            Key = key; Monitor = monitor;
        }
        public TKey Key { get; private set; }
        public Action<IVolatileToken> Monitor { get; private set; }
    }
}
